package com.huaxiafinance.management.dto.request;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Created by huangwencheng on 2017/9/15.
 */
public class GradeRatioDto {
    @NotNull(message = "id不能为空")
    private Integer id;
    @NotNull(message = "会员等级id不能为空")
    private Integer gradeId;
    @NotNull(message = "会员积分倍数不能为空")
    @Min(value = 0, message = "倍数最小为0")
    @Max(value = 3, message = "倍数最大为3")
    private Double gradeRatio;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGradeId() {
        return gradeId;
    }

    public void setGradeId(Integer gradeId) {
        this.gradeId = gradeId;
    }

    public Double getGradeRatio() {
        return gradeRatio;
    }

    public void setGradeRatio(Double gradeRatio) {
        this.gradeRatio = gradeRatio;
    }
}
